package com.xqboss.apps.dto.marketing;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 *     添加空投
 * </p>
 * @author Trent
 * @date 2023/9/1
 */
@Data
@ApiModel
public class WebAirdropMaterialUserDto {

    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty(value = "空投金额数量", required = true)
    @NotNull(message = "请输入空投金额数量")
    @DecimalMin(value = "0", message = "空投金额数量不能小于0")
    private BigDecimal amount;
}
